* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.on {
    background: radial-gradient(#555, #111);
}

.on .bulb::after {
    content: '';
    position: absolute;
    top: 21%;
    left: 54%;
    width: 120px;
    height: 120px;
    background: #fff;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    border-radius: 50%;
}

.light {
    position: relative;
}

.bulb {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #444;
    border-radius: 50%;
    z-index: 999;
}

.bulb::before {
    content: '';
    position: absolute;
    left: 22.5px;
    top: -40px;
    height: 80px;
    width: 35px;
    background: #444;
    border-top: 20px solid #000;
    border-radius: 10%;
}

.on .bulb {
    background: #fff;
    box-shadow: 0 0 50px #fff, 0 0 100px #fff, 0 0 150px #fff, 0 0 200px #fff, 0 0 250px #fff, 0 0 300px #fff, 0 0 350px #fff;
}

.on .bulb::before {
    background: #fff;
}

.on .bulb span:nth-child(1) {
    box-shadow: 1px 11px 0 -3px #fff;
}

.on .bulb span:nth-child(2) {
    box-shadow: 1px 11px 0 -3px #fff;
}

.bulb span:nth-child(1) {
    position: absolute;
    top: -14px;
    left: -5px;
    width: 30px;
    height: 30px;
    display: block;
    background: transparent;
    transform: rotate(260deg);
    border-bottom-left-radius: 40px;
    box-shadow: 1px 11px 0 -3px #444;
}

.bulb span:nth-child(2) {
    position: absolute;
    top: -26px;
    left: 51px;
    width: 30px;
    height: 30px;
    display: block;
    background: transparent;
    transform: rotate(44deg);
    border-bottom-left-radius: 40px;
    box-shadow: 1px 11px 0 -3px #444;
}

.wire {
    position: absolute;
    left: calc(50% + 38px);
    bottom: 50%;
    height: 60vh;
    width: 4px;
    background: black;
    z-index: 1;
}

.switch {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 50px;
    right: 50px;
    width: 80px;
    height: 80px;
    background: linear-gradient(#fff, #eee, #ccc);
    border-radius: 10px;
    border: 1px solid #222;
}

.switch .btn {
    position: relative;
    width: 20px;
    height: 50px;
    border-radius: 10%;
    border: 1px solid #222;
    background: linear-gradient(#777, #fff, #777);
    cursor: pointer;
}

.switch .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(#fff, #fff);
    border-radius: 8%;
}

.on .switch .btn::before {
    top: 20%;
}